package com.hjy.mybatisgenerator.JpaUtil;

import com.hjy.mybatisgenerator.JpaUtil.code.*;
import com.hjy.mybatisgenerator.JpaUtil.db.DBUtil;

/**
 * Created by hjy on 2018/11/23.
 */
public class GenMain {
    public static void main(String[] args) {

        String tablename = "nonself_food_order_detail_info";//表
        String describe = "非自营美食订单详情";
//		 //得到表字段属性
        DBUtil.batchTableProperty(tablename);
//
//		 //生成持久化对象
//        GenPoCode gpc = new GenPoCode(tablename,describe);
//
//		 //生成表现层对象
//		 GenVoCode gvc = new GenVoCode(tablename, describe);
//
//		 //生成数据传输对象
//		 GenDtoCode gdc = new GenDtoCode(tablename, describe);
//
//		 //生成构造查询条件
//        GenQueryFilterCode gqfc = new GenQueryFilterCode(tablename, describe);
//
//		 //生成RepositoryMaster接口实现
//        GenRepositoryMasterCode grmc = new GenRepositoryMasterCode(tablename, describe);
//
//		 //生成RepositorySlave接口实现
//        GenRepositorySlaveCode grsc = new GenRepositorySlaveCode(tablename, describe);
//
//		 //生成service接口
//        GenServiceCode gsc = new GenServiceCode(tablename, describe);
//
//		 //生成service接口实现
//        GenServiceImplCode gsic = new GenServiceImplCode(tablename, describe);
//
//		 //生成controller控制类
//        GenControllerCode gcc = new GenControllerCode(tablename, describe);

        GenDoCode gpc = new GenDoCode(tablename,describe);
        GenAddParamCode gpc2 = new GenAddParamCode(tablename,describe);
        GenParamCode gpc3 = new GenParamCode(tablename,describe);
    }
}
